package com.hardydou.lang;



import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.Security;

/**
 * @author ：hardy
 * @description：
 * @date ：Created in 2020/12/25
 * @Copyright ：Hardydou.com
 */
public class Hm {


    public static void main(String[] args) throws NoSuchAlgorithmException, UnsupportedEncodingException {
        MessageDigest md = MessageDigest.getInstance("MD5");
        md.update("abc".getBytes("UTF8"));
        byte[] str = md.digest();
        System.out.println(new String(str,"utf8"));
    }
}

